package com.desgin.controller;

import com.common.ResponseVO;
import com.desgin.domain.dto.ModelDTO;
import com.desgin.service.AdapterModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaofang
 * @version 1.0
 * @since 2021/8/13 13:56
 **/
@RestController
@RequestMapping("modelController")
public class ModelController {

    @Autowired
    private AdapterModelService adapterModelService;

    @PostMapping("/getMessage")
    public ResponseVO<String> getMessage(@RequestBody ModelDTO modelDTO){
        return adapterModelService.getMessage(modelDTO);
    }
}